{include file="public_head" /}

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>
                            会员等级管理
                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>{$mate_title}</h2>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form name="form" id="form" method="post" action="">
                                    <table class="table table-striped table-bordered table-hover">
                                        <thead>
                                        <tr>
                                            <th>等级名称</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        {empty name="data"}
                                        <tr>
                                            <td colspan="5">
                                                <div style='font-size:24px;margin:30px 0;'>没有找到记录</div>
                                            </td>
                                        </tr>
                                        {/empty}
                                        {volist name="data" id="item"}
                                        <tr>
                                            <td align="center">
                                                <input type="text" name="titleArr[]" id="titleArr[]"
                                                       class="form-control" value="{$item.title|default=''}"
                                                       style="width:200px;text-align: center"/>
                                                <input type="hidden" name="ids[]" value="{$item.id}"/>
                                            </td>
                                            <td>
                                                <a href="{:url('console/ShopGoodsSpec/attrDel', ['id' => $item['id'],'goods_type_id' => input('goods_type_id'),'spec_id' => input('spec_id')])}"
                                                   class="label label-danger"
                                                   onClick="return confirm('确定删除吗?')"
                                                >
                                                    <span class="fa fa-times"></span>&nbsp;&nbsp;删 除
                                                </a>
                                            </td>
                                        </tr>
                                        {/volist}
                                        </tbody>
                                        <tr align="center" style="background-color:#FFF;">
                                            <td height="30" colspan="5"><strong>新增一个级联组</strong></td>
                                        </tr>
                                        <tr align="left">
                                            <td height="36" align="center"><input type="text" name="title" id="title"
                                                                                  placeholder="属性名称"
                                                                                  class="form-control"
                                                                                  style="width:200px;text-align: center"/>
                                            </td>
                                            <input name="goods_type_id" type="hidden" value="{:input('id')}">
                                            <input name="spec_id" type="hidden" value="{:input('spec_id')}">
                                        </tr>

                                        <tbody align="left">
                                        <tr>
                                            <td colspan="5">
                                                <a type="reset" class="btn btn-outline btn-success btn-xs" style="float:right;" onclick="history.go(-1)">返回</a>
                                                <a class="btn btn-outline btn-primary btn-xs" href="#"
                                                   onclick="form.submit();" style="float:right;">更新全部</a>

                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}
<!-- Datatables-->
<script src="__STATIC__/js/datatables/jquery.dataTables.min.js"></script>
<script src="__STATIC__/js/datatables/dataTables.bootstrap.js"></script>
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>